package GUI;

import javax.swing.JPanel;
import javax.swing.JLabel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.ImageIcon;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import java.awt.TextArea;
import javax.swing.JScrollBar;
import javax.swing.JButton;
import javax.swing.DefaultComboBoxModel;

public class TestingStage_GUI extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextArea comments;
	private JComboBox decision;
	private JButton cancel_button;
	private JButton btnSubmit;
	private JButton btnViewEstimationReport;
	public TestingStage_GUI() {
		setLayout(null);
		
		JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("              Testing stage");
		lblNewJgoodiesTitle.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblNewJgoodiesTitle.setIcon(new ImageIcon(TestingStage_GUI.class.getResource("/Picture/tests-icon.png")));
		lblNewJgoodiesTitle.setBounds(0, 0, 324, 140);
		add(lblNewJgoodiesTitle);
		
		JLabel lblChooseDecision = DefaultComponentFactory.getInstance().createLabel("choose decision :");
		lblChooseDecision.setFont(new Font("Arial", Font.BOLD, 12));
		lblChooseDecision.setBounds(10, 166, 140, 27);
		add(lblChooseDecision);
		
		decision = new JComboBox();
		decision.setModel(new DefaultComboBoxModel(new String[] {"", "approved", "failure"}));
		decision.setBounds(184, 166, 180, 27);
		add(decision);
		
		JLabel lblComment = DefaultComponentFactory.getInstance().createLabel("comment");
		lblComment.setFont(new Font("Arial", Font.BOLD, 12));
		lblComment.setBounds(10, 273, 88, 14);
		add(lblComment);
		
		JScrollBar scrollBar = new JScrollBar();
		scrollBar.setBounds(347, 239, 17, 48);
		add(scrollBar);
		
		comments = new JTextArea();
		comments.setBounds(184, 240, 180, 48);
		add(comments);
		
		cancel_button = new JButton("Cancel");
		cancel_button.setIcon(new ImageIcon(TestingStage_GUI.class.getResource("/Picture/Button-Close-icon.png")));
		cancel_button.setBounds(9, 416, 141, 47);
		add(cancel_button);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(TestingStage_GUI.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(309, 416, 141, 47);
		add(btnSubmit);
		
		btnViewEstimationReport = new JButton("view estimation report");
		btnViewEstimationReport.setBounds(301, 96, 149, 41);
		add(btnViewEstimationReport);
	}
	
	
	public JTextArea getComments() {
		return comments;
	}


	public void setComments(JTextArea comments) {
		this.comments = comments;
	}


	public JComboBox getDecision() {
		return decision;
	}


	public void setDecision(JComboBox decision) {
		this.decision = decision;
	}


	public JButton getCancel_button() {
		return cancel_button;
	}
	public void setCancel_button(JButton cancel_button) {
		this.cancel_button = cancel_button;
	}
	public JButton getBtnSubmit() {
		return btnSubmit;
	}
	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	public JButton getBtnViewEstimationReport() {
		return btnViewEstimationReport;
	}
	
}
